<?php
Route::group(['prefix' => 'admin/userfiles', 'namespace' => 'App\Http\Controllers\Admin'], function () {
    Route::get('/', 'UserfilesController@getIndex');
    Route::get('page-rows', 'UserfilesController@getPageRows');
    Route::post('add-folder', 'UserfilesController@postAddFolder');
    Route::post('ren-folder', 'UserfilesController@postRenFolder');
    Route::post('remove-folder', 'UserfilesController@postRemoveFolder');
    Route::get('folder-ztree', 'UserfilesController@getFolderZtree');
    Route::post('change-sort-by-ztree', 'UserfilesController@postChangeSortByZtree');
    Route::post('upload-file', 'UserfilesController@postUploadFile');
    Route::get('download-file', 'UserfilesController@getDownloadFile');
    Route::get('file-info', 'UserfilesController@getFileInfo');
    Route::post('ren-file', 'UserfilesController@postRenFile');
    Route::post('move-files', 'UserfilesController@postMoveFiles');
    Route::post('remove-files', 'UserfilesController@postRemoveFiles');
});
